package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.WechatFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class WechatFallback implements WechatFeign {
    @Override
    public ResultModel<WechatTokenResponse> token(WechatTokenRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<WechatTokenResponse> ticket(WechatTokenRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<WechatSendMsgResponse> sendMsg(WechatSendMsgRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel templateInit(WechatTemplateInitRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<WechatComponentTokenResponse> componentToken() {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<WechatAuthorizerTokenResponse> authorizerToken(WechatAuthorizerTokenRequest request) {
        return ResultModel.faultTolerant();
    }
}
